package com.kma.summer2012.client.events.request;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

/**
 * Created with IntelliJ IDEA.
 * User: EUGENE
 * Date: 2/19/13
 * Time: 11:24 PM
 * To change this template use File | Settings | File Templates.
 */
public class ImportRequestEvent extends GwtEvent<ImportRequestEvent.ImportRequestEventHandler> {
    private static Type<ImportRequestEventHandler> TYPE = new Type<ImportRequestEventHandler>();

    @Override
    public Type<ImportRequestEventHandler> getAssociatedType() {
        return TYPE;
    }

    public static Type<ImportRequestEventHandler> getType() {
        return TYPE;
    }

    @Override
    protected void dispatch(ImportRequestEventHandler importRequestEventHandler) {
        importRequestEventHandler.onImportRequest();
    }

    public interface ImportRequestEventHandler extends EventHandler {
        void onImportRequest();
    }
}
